c# 中路径 @"\" 是个什么东西?
来源:百度知道 编辑:UC知道 时间:2024/05/21 09:41:18
c# 中路径 @"\" 是个什么东西?
@""
代表字符串里的字符保持原样不做转义
比如
string s = "\thello";//这个字符串里面包含一个tab位和hello
string s = @"\thello";//这个字符串里就包含\thello原样不变
即表示字符串:"/"
如
string strPath = "c://windows//system32";
等同于@"c:/windows/system32";
转义的字符串
统配伏